<?php

namespace App\Http\Controllers\Frontend\Hr;

use Auth;
use App\Http\Controllers\Controller;

class DashboardController extends Controller {

    public function index()
    {
//        $hr = Auth::user();
//
//        if(! $hr->hasRole('hr')) {
//            return abort(403);
//        }

//        $source = storage_path(). '/bb.doc';
////        dd($source);
//
//        $phpWord = \PhpOffice\PhpWord\IOFactory::load($source);
//
//        dd($phpWord);
//        echo write($phpWord, storage_path().'/bb.php', $writers);

        return view('frontend.hr.dashboard');
    }
}